/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ControlAlumno.java
 *
 * Created on 11-jul-2012, 22:58:14
 */

package interfaz;

import Clases.Alumno;
import Controladores.AlumnoPersonalizado;
import escuela.conexion;
import escuela.exceptions.IllegalOrphanException;
import escuela.exceptions.NonexistentEntityException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.UIManager;
import javax.swing.table.DefaultTableModel;
/**
 *
 * @author PaBLo
 */
public class ControlAlumno extends javax.swing.JDialog {
    Mensajes msj = new Mensajes(this);
    conexion cnx = conexion.ObtenerInstancia();
    EntityManagerFactory emf = cnx.ObtenerEMF();
    AlumnoPersonalizado alumnos = new AlumnoPersonalizado(emf);
    short idAl=0;//para el id del alumno
    int ban=1;//para q no exist aconflicto con el combo box
    boolean haydatos=true;
    /** Creates new form ControlAlumno
     * @param parent
     * @param modal
     */
    public ControlAlumno(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        this.setLocationRelativeTo(null);
        this.Nacimiento.setCalendar(Calendar.getInstance());
        //System.out.print(this.Nacimiento.getDate());
        if(alumnos.pTodosLosAlumnos().isEmpty()){
            haydatos=false;
        }else{
            CargarCodigoPersonal();
            CargarDatosEdicion();
            CargarReporte();
        }
    }
     /** Carga el reporte de los alumnos que estan en la escuela
     */
    private void CargarReporte(){
        MiModelo modelo = new MiModelo();
        List<Alumno> reportealumnos;
        if(this.BuscarX.getSelectedIndex()==0){
            reportealumnos = alumnos.pTodosLosAlumnos();
        }else if(this.BuscarX.getSelectedIndex()==1){
            reportealumnos = alumnos.pAlumnosHabilitados();
        }else {
            reportealumnos = alumnos.pAlumnosDeshabilitados();
        }
        modelo.addColumn("Codigo Personal");
        modelo.addColumn("Nombres");
        modelo.addColumn("Apellidos");
        modelo.addColumn("Fecha de Nacimiento");
        modelo.addColumn("Direccion");
        modelo.addColumn("Nombre del Encargado");
        modelo.addColumn("Direccion del Encargado");
        modelo.addColumn("Telefono del Encargado");
        Object[] filas = new Object [8];
        for(Alumno ba: reportealumnos){
            filas[0]=ba.getCodigoPersonal();
            filas[1]=ba.getNombres();
            filas[2]=ba.getApellidos();
            SimpleDateFormat fecha = new SimpleDateFormat("dd/MM/yyyy");
            filas[3]=fecha.format(ba.getFechaNacimiento());
            filas[4]=ba.getDireccion();
            filas[5]=ba.getNombreEncargado();
            filas[6]=ba.getDireccionEncargado();
            filas[7]=ba.getTelefonoEncargado();
            modelo.addRow(filas);
        }
        this.TablaReporte.setModel(modelo);
        
    }
    /** Actualiza los campos de alumno en el formulario
     */
    private void ActualizarAlumno(){
        String ape = this.EditApellido.getText();
        String nom = this.EditNombre.getText();
        String dir = this.EditDireccion.getText();
        String cod = this.EditCodigo.getSelectedItem()+"";
        String diren = this.EditDirEncargado.getText();
        String reli = this.EditReligion.getText();
        String tel = this.EditTelefono.getText();
        String telen = this.EditTelEncargado.getText();
        String nomen = this.EditNombreEncargado.getText();
        Date naci = this.EditNacimiento.getDate();
        boolean vig = true;
        if(this.NoVigente.isSelected()){
            vig=false;
        }
       // alumnos.ActualizarAlumno(idAl,nom,ape,naci,dir,nomen,telen,diren,vig, reli, tel);
        System.out.print("---------"+idAl);
        try {
            alumnos.destroy(idAl);
        } catch (IllegalOrphanException ex) {
            Logger.getLogger(ControlAlumno.class.getName()).log(Level.SEVERE, null, ex);
        } catch (NonexistentEntityException ex) {
            Logger.getLogger(ControlAlumno.class.getName()).log(Level.SEVERE, null, ex);
        }
        Alumno estudiante = new Alumno(idAl,nom,ape,naci,cod,dir,nomen,telen,diren,vig);
        estudiante.setReligion(reli);
        estudiante.setTelefono(tel);
        alumnos.create(estudiante);
    }
    /** Procedimiento para ingresar el alumno en la base de datos
     */
    private void IngresarAlumno(){
        String ape = this.Apellido.getText();
        String nom = this.Nombre.getText();
        String dir = this.Direccion.getText();
        String cod = this.CodigoPersonal.getText();
        String diren = this.DirEncargado.getText();
        String reli = this.Religion.getText();
        String tel = this.Telefono.getText();
        String telen = this.TelEncargado.getText();
        String nomen = this.NombreEncargado.getText();
        Date naci = this.Nacimiento.getDate();
        short id = (short) (alumnos.UltimoId()+1);
        Alumno estudiante = new Alumno(id,nom,ape,naci,cod,dir,nomen,telen,diren,true);
        estudiante.setReligion(reli);
        estudiante.setTelefono(tel);
        alumnos.create(estudiante);
    }
    /** Este procedimiento carga los datos de los alumno que se va a editar
     */
    private void CargarDatosEdicion(){
        List<Alumno> alumnoselec = alumnos.pBuscarPorCodigoPersonal(this.EditCodigo.getSelectedItem()+"");
        Alumno alumnoseleccionado = alumnoselec.get(0);
        idAl = alumnoseleccionado.getIdAlumno();
        this.EditNombre.setText(alumnoseleccionado.getNombres());
        this.EditApellido.setText(alumnoseleccionado.getApellidos());
        this.EditReligion.setText(alumnoseleccionado.getReligion());
        this.EditNacimiento.setDate(alumnoseleccionado.getFechaNacimiento());
        this.EditTelefono.setText(alumnoseleccionado.getTelefono());
        this.EditDireccion.setText(alumnoseleccionado.getDireccion());
        this.EditNombreEncargado.setText(alumnoseleccionado.getNombreEncargado());
        this.EditDirEncargado.setText(alumnoseleccionado.getDireccionEncargado());
        this.EditTelEncargado.setText(alumnoseleccionado.getTelefonoEncargado());
        if(alumnoseleccionado.getVigente()){
            this.SiVigente.setSelected(true);
        }else this.NoVigente.setSelected(true);
    }
    private void CargarCodigoPersonal(){
        List<Alumno> codigos = alumnos.pTodosLosAlumnos();
        for(Alumno cod: codigos){
            this.EditCodigo.addItem(cod.getCodigoPersonal());
            //System.out.println(cod.getCodigoPersonal());
        }

    }
    // <editor-fold defaultstate="collapsed" desc="Verificacion de campos">
    private boolean VerificarCampos(byte panel){
        boolean respuesta =true;
        boolean[] campos = new boolean[8];
        if(panel==0){
            campos[1]=this.Apellido.getText().isEmpty();
            campos[0]=this.Nombre.getText().isEmpty();
            campos[4]=this.Direccion.getText().isEmpty();
            campos[3]=this.CodigoPersonal.getText().isEmpty();
            campos[7]=this.DirEncargado.getText().isEmpty();
            campos[6]=this.TelEncargado.getText().isEmpty();
            campos[5]=this.NombreEncargado.getText().isEmpty();
            campos[2]=this.Nacimiento.getDate().toString().isEmpty();
        }else {
            campos[1]=this.EditApellido.getText().isEmpty();
            campos[0]=this.EditNombre.getText().isEmpty();
            campos[4]=this.EditDireccion.getText().isEmpty();
            campos[3]=this.EditCodigo.getSelectedItem().toString().isEmpty();
            campos[7]=this.EditDirEncargado.getText().isEmpty();
            campos[6]=this.EditTelEncargado.getText().isEmpty();
            campos[5]=this.EditNombreEncargado.getText().isEmpty();
            campos[2]=this.EditNacimiento.getDate().toString().isEmpty();
        }
        int num=0;
        for(boolean cam: campos){
            if(cam==true){
                respuesta=false;
                break;
            }
            num++;
        }
        if(respuesta==false){
            System.out.print("entro");
            String mensaje="";
            switch(num){
                case 1: mensaje="Los apellidos son obligatorios"; break;
                case 0: mensaje="Los nombres son obligatorios"; break;
                case 4: mensaje="La direccion es obligatoria"; break;
                case 3: mensaje="El codigo personal es obligatorio"; break;
                case 7: mensaje="La direccion del encargado es obligatoria"; break;
                case 6: mensaje="El telefono del encargado es obligatorio"; break;
                case 5: mensaje="El nombre del encargado es obligatorio"; break;
                case 2: mensaje="La fecha de nacimiento es obligatoria"; break;
            }
            msj.MensajeError(mensaje);
        }
        return respuesta;
    }// </editor-fold>
    /** Este procedimiento reinicia los campos del formulario
     */
    private void ReiniciarCampos(byte campo){
        if(campo==0){
            this.Apellido.setText("");
            this.Nombre.setText("");
            this.Direccion.setText("");
            this.CodigoPersonal.setText("");
            this.DirEncargado.setText("");
            this.Religion.setText("");
            this.Telefono.setText("");
            this.TelEncargado.setText("");
            this.NombreEncargado.setText("");
            this.Nacimiento.setCalendar(Calendar.getInstance());
        }else{

        }
    }
    private void Aceptar(){
        int seleccionado = this.CRUDiAlumno.getSelectedIndex();
        switch(seleccionado){
            case 0: if(VerificarCampos((byte)0)){//Creacion
                        /*byte respuesta =msj.MensajeConfirmacion("¿Esta seguro que desea agregar este alumno?");
                        switch(respuesta){
                            case 0: System.out.println("Acepto"); break;
                            case 2: System.out.println("Cancelar"); break;
                        }*/
                        IngresarAlumno();
                        msj.MensajeSeRealizo("El alumno se ha ingresado exitosamente", "Ingresado");
                        ban=0;
                        this.EditCodigo.removeAllItems();
                        CargarCodigoPersonal();
                        ban=1;
                        CargarReporte();
                    }
                    break;
            case 1: if(VerificarCampos((byte)1)){//Edicion
                        byte respuesta =msj.MensajeConfirmacion("¿Esta seguro que desea actualizar los datos de este alumno?");
                        switch(respuesta){
                            case 0: ActualizarAlumno();
                                    msj.MensajeSeRealizo("Se ha actualizado el alumno exitosamente", "Actualizado");
                                    break;
                            case 2: System.out.println("Cancelar");  break;
                        }
                    }
                    break;
        }
    }
    private void Cancelar(){
        int seleccionado = this.CRUDiAlumno.getSelectedIndex();
        byte respuesta;
        switch(seleccionado){
            case 0: respuesta =msj.MensajeConfirmacion("¿Esta seguro que cancelar el ingreso? Todos los datos se perderan");
                    switch(respuesta){
                        case 0: ReiniciarCampos((byte)0); break;
                        case 2: System.out.println("Cancelar"); break;
                    }
                    break;
            case 1: respuesta = msj.MensajeConfirmacion("¿Esta seguro que desea cancelar la actualizacion? Todos los datos que no esten guardados se perderan");
                    switch(respuesta){
                        case 0: CargarDatosEdicion(); break;
                        case 2: System.out.println("Cancelar"); break;
                    }
                    break;
        }
    }
    /**
     *
     */
    public class MiModelo extends DefaultTableModel
    {
        @Override
       public boolean isCellEditable (int row, int column)
       {
           return false;
       }
    }
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        CRUDiAlumno = new javax.swing.JTabbedPane();
        PanelCreacion = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        DirEncargado = new javax.swing.JTextField();
        TelEncargado = new javax.swing.JTextField();
        NombreEncargado = new javax.swing.JTextField();
        Direccion = new javax.swing.JTextField();
        Telefono = new javax.swing.JTextField();
        CodigoPersonal = new javax.swing.JTextField();
        Religion = new javax.swing.JTextField();
        Apellido = new javax.swing.JTextField();
        Nombre = new javax.swing.JTextField();
        Nacimiento = new com.toedter.calendar.JDateChooser();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        PanelEdicion = new javax.swing.JPanel();
        jLabel19 = new javax.swing.JLabel();
        EditCodigo = new javax.swing.JComboBox();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        EditApellido = new javax.swing.JTextField();
        EditNombre = new javax.swing.JTextField();
        jLabel24 = new javax.swing.JLabel();
        EditReligion = new javax.swing.JTextField();
        EditNacimiento = new com.toedter.calendar.JDateChooser();
        jLabel25 = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        jLabel27 = new javax.swing.JLabel();
        EditTelefono = new javax.swing.JTextField();
        EditDireccion = new javax.swing.JTextField();
        jLabel28 = new javax.swing.JLabel();
        jLabel29 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        EditNombreEncargado = new javax.swing.JTextField();
        EditTelEncargado = new javax.swing.JTextField();
        jLabel32 = new javax.swing.JLabel();
        jLabel33 = new javax.swing.JLabel();
        jLabel34 = new javax.swing.JLabel();
        jLabel35 = new javax.swing.JLabel();
        EditDirEncargado = new javax.swing.JTextField();
        jLabel37 = new javax.swing.JLabel();
        SiVigente = new javax.swing.JRadioButton();
        NoVigente = new javax.swing.JRadioButton();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        TablaReporte = new javax.swing.JTable();
        jLabel36 = new javax.swing.JLabel();
        BuscarX = new javax.swing.JComboBox();
        Cancelar = new javax.swing.JButton();
        Aceptar = new javax.swing.JButton();
        jTaskPane1 = new com.l2fprod.common.swing.JTaskPane();
        jLabel38 = new javax.swing.JLabel();
        Descripcion = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Control de Alumnos");
        setName("pAlumno"); // NOI18N
        setResizable(false);

        CRUDiAlumno.setFont(new java.awt.Font("Arial", 0, 12));
        CRUDiAlumno.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                CRUDiAlumnoStateChanged(evt);
            }
        });

        PanelCreacion.setToolTipText("Crear y agregar un nuevo alumno");

        jLabel1.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel1.setText("Nombre:");
        jLabel1.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jLabel1FocusGained(evt);
            }
        });

        jLabel2.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel2.setText("Apellido:");

        jLabel3.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel3.setText("Religion:");

        jLabel4.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel4.setText("Fecha de nacimiento:");

        jLabel5.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel5.setText("Codigo personal:");

        jLabel6.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel6.setText("Direccion:");

        jLabel7.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel7.setText("Telefono:");

        jLabel8.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel8.setText("Nombre del encargado;");

        jLabel9.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel9.setText("Direccion del encargado:");

        jLabel10.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel10.setText("Telefono del encargado:");

        DirEncargado.setNextFocusableComponent(Cancelar);
        DirEncargado.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                DirEncargadoKeyPressed(evt);
            }
        });

        TelEncargado.setNextFocusableComponent(DirEncargado);
        TelEncargado.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                TelEncargadoKeyPressed(evt);
            }
        });

        NombreEncargado.setNextFocusableComponent(TelEncargado);
        NombreEncargado.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                NombreEncargadoKeyPressed(evt);
            }
        });

        Direccion.setNextFocusableComponent(NombreEncargado);
        Direccion.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                DireccionKeyPressed(evt);
            }
        });

        Telefono.setNextFocusableComponent(Direccion);
        Telefono.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                TelefonoKeyPressed(evt);
            }
        });

        CodigoPersonal.setNextFocusableComponent(Telefono);
        CodigoPersonal.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                CodigoPersonalMousePressed(evt);
            }
        });
        CodigoPersonal.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                CodigoPersonalKeyPressed(evt);
            }
        });

        Religion.setNextFocusableComponent(Nacimiento);
        Religion.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                ReligionKeyPressed(evt);
            }
        });

        Apellido.setNextFocusableComponent(Religion);
        Apellido.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                ApellidoKeyPressed(evt);
            }
        });

        Nombre.setNextFocusableComponent(Apellido);
        Nombre.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                NombreKeyPressed(evt);
            }
        });

        Nacimiento.setNextFocusableComponent(CodigoPersonal);
        Nacimiento.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                NacimientoKeyPressed(evt);
            }
        });

        jLabel11.setForeground(new java.awt.Color(255, 0, 0));
        jLabel11.setText("*");
        jLabel11.setToolTipText("Campo Obligatorio");
        jLabel11.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jLabel11FocusGained(evt);
            }
        });

        jLabel12.setForeground(new java.awt.Color(255, 0, 0));
        jLabel12.setText("*");
        jLabel12.setToolTipText("Campo Obligatorio");

        jLabel13.setForeground(new java.awt.Color(255, 0, 0));
        jLabel13.setText("*");
        jLabel13.setToolTipText("Campo Obligatorio");

        jLabel14.setForeground(new java.awt.Color(255, 0, 0));
        jLabel14.setText("*");
        jLabel14.setToolTipText("Campo Obligatorio");

        jLabel15.setForeground(new java.awt.Color(255, 0, 0));
        jLabel15.setText("*");
        jLabel15.setToolTipText("Campo Obligatorio");

        jLabel16.setForeground(new java.awt.Color(255, 0, 0));
        jLabel16.setText("*");
        jLabel16.setToolTipText("Campo Obligatorio");

        jLabel17.setForeground(new java.awt.Color(255, 0, 0));
        jLabel17.setText("*");
        jLabel17.setToolTipText("Campo Obligatorio");

        jLabel18.setForeground(new java.awt.Color(255, 0, 0));
        jLabel18.setText("*");
        jLabel18.setToolTipText("Campo Obligatorio");

        javax.swing.GroupLayout PanelCreacionLayout = new javax.swing.GroupLayout(PanelCreacion);
        PanelCreacion.setLayout(PanelCreacionLayout);
        PanelCreacionLayout.setHorizontalGroup(
            PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelCreacionLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(PanelCreacionLayout.createSequentialGroup()
                        .addGroup(PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(PanelCreacionLayout.createSequentialGroup()
                                .addGroup(PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 6, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 6, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel2)
                                    .addComponent(jLabel1)))
                            .addGroup(PanelCreacionLayout.createSequentialGroup()
                                .addGroup(PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel13)
                                    .addComponent(jLabel14))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel4)
                                    .addComponent(jLabel5)
                                    .addComponent(jLabel3)))
                            .addGroup(PanelCreacionLayout.createSequentialGroup()
                                .addComponent(jLabel17)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel10))
                            .addGroup(PanelCreacionLayout.createSequentialGroup()
                                .addComponent(jLabel18)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel8))
                            .addGroup(PanelCreacionLayout.createSequentialGroup()
                                .addComponent(jLabel15)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel7)
                                    .addComponent(jLabel6))))
                        .addGap(8, 8, 8)
                        .addGroup(PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(Apellido, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)
                            .addComponent(Religion, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)
                            .addComponent(Nacimiento, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)
                            .addComponent(CodigoPersonal, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)
                            .addComponent(Telefono, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)
                            .addComponent(Direccion, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)
                            .addComponent(NombreEncargado, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)
                            .addComponent(TelEncargado, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)
                            .addComponent(Nombre, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)))
                    .addGroup(PanelCreacionLayout.createSequentialGroup()
                        .addComponent(jLabel16)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel9)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(DirEncargado, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)))
                .addContainerGap())
        );
        PanelCreacionLayout.setVerticalGroup(
            PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelCreacionLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(Nombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel11))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(Apellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel12))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Religion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel4)
                        .addComponent(jLabel13))
                    .addComponent(Nacimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(CodigoPersonal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel14))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Telefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel7))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(Direccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel15))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(NombreEncargado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel18))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel10)
                    .addComponent(TelEncargado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel17))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelCreacionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9)
                    .addComponent(DirEncargado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel16))
                .addContainerGap(39, Short.MAX_VALUE))
        );

        CRUDiAlumno.addTab("Crear", PanelCreacion);

        PanelEdicion.setToolTipText("Editar o actualizar los datos de un alumno");

        jLabel19.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel19.setText("Codigo personal:");

        EditCodigo.setFont(new java.awt.Font("Arial", 0, 12));
        EditCodigo.setNextFocusableComponent(EditNombre);
        EditCodigo.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                EditCodigoItemStateChanged(evt);
            }
        });
        EditCodigo.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                EditCodigoKeyPressed(evt);
            }
        });

        jLabel20.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel20.setText("Nombre:");
        jLabel20.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jLabel20FocusGained(evt);
            }
        });

        jLabel21.setForeground(new java.awt.Color(255, 0, 0));
        jLabel21.setText("*");
        jLabel21.setToolTipText("Campo Obligatorio");
        jLabel21.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jLabel21FocusGained(evt);
            }
        });

        jLabel22.setForeground(new java.awt.Color(255, 0, 0));
        jLabel22.setText("*");
        jLabel22.setToolTipText("Campo Obligatorio");

        jLabel23.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel23.setText("Apellido:");

        EditApellido.setNextFocusableComponent(EditReligion);
        EditApellido.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                EditApellidoKeyPressed(evt);
            }
        });

        EditNombre.setNextFocusableComponent(EditApellido);
        EditNombre.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                EditNombreKeyPressed(evt);
            }
        });

        jLabel24.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel24.setText("Religion:");

        EditReligion.setNextFocusableComponent(EditNacimiento);
        EditReligion.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                EditReligionKeyPressed(evt);
            }
        });

        EditNacimiento.setNextFocusableComponent(EditTelefono);
        EditNacimiento.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                EditNacimientoKeyPressed(evt);
            }
        });

        jLabel25.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel25.setText("Fecha de nacimiento:");

        jLabel26.setForeground(new java.awt.Color(255, 0, 0));
        jLabel26.setText("*");
        jLabel26.setToolTipText("Campo Obligatorio");

        jLabel27.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel27.setText("Telefono:");

        EditTelefono.setNextFocusableComponent(EditDireccion);
        EditTelefono.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                EditTelefonoKeyPressed(evt);
            }
        });

        EditDireccion.setNextFocusableComponent(EditNombreEncargado);
        EditDireccion.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                EditDireccionKeyPressed(evt);
            }
        });

        jLabel28.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel28.setText("Direccion:");

        jLabel29.setForeground(new java.awt.Color(255, 0, 0));
        jLabel29.setText("*");
        jLabel29.setToolTipText("Campo Obligatorio");

        jLabel30.setForeground(new java.awt.Color(255, 0, 0));
        jLabel30.setText("*");
        jLabel30.setToolTipText("Campo Obligatorio");

        jLabel31.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel31.setText("Nombre del encargado;");

        EditNombreEncargado.setNextFocusableComponent(EditTelEncargado);
        EditNombreEncargado.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                EditNombreEncargadoKeyPressed(evt);
            }
        });

        EditTelEncargado.setNextFocusableComponent(EditDirEncargado);
        EditTelEncargado.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                EditTelEncargadoKeyPressed(evt);
            }
        });

        jLabel32.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel32.setText("Telefono del encargado:");

        jLabel33.setForeground(new java.awt.Color(255, 0, 0));
        jLabel33.setText("*");
        jLabel33.setToolTipText("Campo Obligatorio");

        jLabel34.setForeground(new java.awt.Color(255, 0, 0));
        jLabel34.setText("*");
        jLabel34.setToolTipText("Campo Obligatorio");

        jLabel35.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel35.setText("Direccion del encargado:");

        EditDirEncargado.setNextFocusableComponent(SiVigente);
        EditDirEncargado.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                EditDirEncargadoKeyPressed(evt);
            }
        });

        jLabel37.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel37.setText("Vigente:");

        buttonGroup1.add(SiVigente);
        SiVigente.setFont(new java.awt.Font("Arial", 0, 12));
        SiVigente.setSelected(true);
        SiVigente.setText("Si");
        SiVigente.setNextFocusableComponent(NoVigente);
        SiVigente.setOpaque(false);
        SiVigente.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                SiVigenteKeyPressed(evt);
            }
        });

        buttonGroup1.add(NoVigente);
        NoVigente.setFont(new java.awt.Font("Arial", 0, 12));
        NoVigente.setText("No");
        NoVigente.setNextFocusableComponent(Cancelar);
        NoVigente.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                NoVigenteKeyPressed(evt);
            }
        });

        javax.swing.GroupLayout PanelEdicionLayout = new javax.swing.GroupLayout(PanelEdicion);
        PanelEdicion.setLayout(PanelEdicionLayout);
        PanelEdicionLayout.setHorizontalGroup(
            PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelEdicionLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, PanelEdicionLayout.createSequentialGroup()
                        .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(PanelEdicionLayout.createSequentialGroup()
                                .addComponent(jLabel29)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel28))
                            .addGroup(PanelEdicionLayout.createSequentialGroup()
                                .addComponent(jLabel33)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel32))
                            .addGroup(PanelEdicionLayout.createSequentialGroup()
                                .addComponent(jLabel30)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel31)))
                        .addGap(8, 8, 8)
                        .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(EditTelefono, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)
                            .addComponent(EditDireccion, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)
                            .addComponent(EditNombreEncargado, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)
                            .addComponent(EditTelEncargado, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)))
                    .addGroup(PanelEdicionLayout.createSequentialGroup()
                        .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(PanelEdicionLayout.createSequentialGroup()
                                .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 6, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 6, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel23)
                                    .addComponent(jLabel20)
                                    .addComponent(jLabel19)))
                            .addGroup(PanelEdicionLayout.createSequentialGroup()
                                .addComponent(jLabel26)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel24)
                                    .addComponent(jLabel25)
                                    .addComponent(jLabel27))))
                        .addGap(23, 23, 23)
                        .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(EditCodigo, 0, 222, Short.MAX_VALUE)
                            .addComponent(EditApellido, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)
                            .addComponent(EditReligion, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)
                            .addComponent(EditNacimiento, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)
                            .addComponent(EditNombre, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)))
                    .addGroup(PanelEdicionLayout.createSequentialGroup()
                        .addComponent(jLabel34)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel35)
                            .addComponent(jLabel37))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(PanelEdicionLayout.createSequentialGroup()
                                .addComponent(SiVigente)
                                .addGap(18, 18, 18)
                                .addComponent(NoVigente)
                                .addGap(0, 126, Short.MAX_VALUE))
                            .addComponent(EditDirEncargado, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE))))
                .addContainerGap())
        );
        PanelEdicionLayout.setVerticalGroup(
            PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelEdicionLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(EditCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel19))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel20)
                    .addComponent(EditNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel21))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel23)
                    .addComponent(EditApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel22))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(EditReligion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel24))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel25)
                        .addComponent(jLabel26))
                    .addComponent(EditNacimiento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(EditTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel27))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel28)
                    .addComponent(EditDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel29))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel31)
                    .addComponent(EditNombreEncargado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel30))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel32)
                    .addComponent(EditTelEncargado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel33))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel35)
                    .addComponent(EditDirEncargado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel34))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(PanelEdicionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(SiVigente)
                    .addComponent(NoVigente)
                    .addComponent(jLabel37))
                .addContainerGap(13, Short.MAX_VALUE))
        );

        CRUDiAlumno.addTab("Editar", PanelEdicion);

        TablaReporte.setFont(new java.awt.Font("Arial", 0, 12));
        TablaReporte.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(TablaReporte);

        jLabel36.setFont(new java.awt.Font("Arial", 0, 12));
        jLabel36.setText("Buscar:");

        BuscarX.setFont(new java.awt.Font("Arial", 0, 12));
        BuscarX.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Todos los Alumnos", "Los Alumnos Habilitados", "Los Alumnos Deshabilitados" }));
        BuscarX.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                BuscarXItemStateChanged(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 375, Short.MAX_VALUE)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel36)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(BuscarX, 0, 323, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel36)
                    .addComponent(BuscarX, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 255, Short.MAX_VALUE)
                .addContainerGap())
        );

        CRUDiAlumno.addTab("Reporte", jPanel2);

        Cancelar.setText("Cancelar");
        Cancelar.setNextFocusableComponent(Aceptar);
        Cancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CancelarActionPerformed(evt);
            }
        });
        Cancelar.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                CancelarKeyPressed(evt);
            }
        });

        Aceptar.setText("Aceptar");
        Aceptar.setNextFocusableComponent(CRUDiAlumno);
        Aceptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AceptarActionPerformed(evt);
            }
        });
        Aceptar.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                AceptarKeyPressed(evt);
            }
        });

        com.l2fprod.common.swing.PercentLayout percentLayout1 = new com.l2fprod.common.swing.PercentLayout();
        percentLayout1.setGap(14);
        percentLayout1.setOrientation(1);
        jTaskPane1.setLayout(percentLayout1);

        jLabel38.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
        jLabel38.setForeground(new java.awt.Color(255, 255, 255));
        jLabel38.setText("Control de Alumnos");
        jTaskPane1.add(jLabel38);

        Descripcion.setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
        Descripcion.setForeground(new java.awt.Color(255, 255, 255));
        jTaskPane1.add(Descripcion);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(CRUDiAlumno, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(0, 236, Short.MAX_VALUE)
                        .addComponent(Cancelar)
                        .addGap(18, 18, 18)
                        .addComponent(Aceptar)))
                .addContainerGap())
            .addComponent(jTaskPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addComponent(jTaskPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(CRUDiAlumno)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(Aceptar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(Cancelar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents
    //<editor-fold defaultstate="collapsed" desc="componenetes">
    private void jLabel1FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jLabel1FocusGained
        // TODO add your handling code here:
    }//GEN-LAST:event_jLabel1FocusGained

    private void DirEncargadoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_DirEncargadoKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.Cancelar.requestFocusInWindow();
        }
}//GEN-LAST:event_DirEncargadoKeyPressed

    private void TelEncargadoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_TelEncargadoKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.DirEncargado.requestFocusInWindow();
        }
}//GEN-LAST:event_TelEncargadoKeyPressed

    private void NombreEncargadoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_NombreEncargadoKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.TelEncargado.requestFocusInWindow();
        }
}//GEN-LAST:event_NombreEncargadoKeyPressed

    private void DireccionKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_DireccionKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.NombreEncargado.requestFocusInWindow();
        }
}//GEN-LAST:event_DireccionKeyPressed

    private void TelefonoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_TelefonoKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.Direccion.requestFocusInWindow();
        }
}//GEN-LAST:event_TelefonoKeyPressed

    private void CodigoPersonalMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_CodigoPersonalMousePressed
        // TODO add your handling code here:
        /*if(evt.getKeyCode()==10){
            this.Telefono.requestFocusInWindow();
        }9*/
}//GEN-LAST:event_CodigoPersonalMousePressed

    private void CodigoPersonalKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_CodigoPersonalKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.Telefono.requestFocusInWindow();
        }
}//GEN-LAST:event_CodigoPersonalKeyPressed

    private void ReligionKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_ReligionKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            //this.Nacimiento.requestFocusInWindow();
            this.CodigoPersonal.requestFocusInWindow();
            this.Nacimiento.getCalendarButton().doClick();
        }
}//GEN-LAST:event_ReligionKeyPressed

    private void ApellidoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_ApellidoKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.Religion.requestFocusInWindow();
        }
}//GEN-LAST:event_ApellidoKeyPressed

    private void NombreKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_NombreKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.Apellido.requestFocusInWindow();
        }
}//GEN-LAST:event_NombreKeyPressed

    private void NacimientoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_NacimientoKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.CodigoPersonal.requestFocusInWindow();
        }
}//GEN-LAST:event_NacimientoKeyPressed

    private void jLabel11FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jLabel11FocusGained
        // TODO add your handling code here:
}//GEN-LAST:event_jLabel11FocusGained

    private void EditCodigoItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_EditCodigoItemStateChanged
        // TODO add your handling code here:
        //this.EditTelefono.setText(this.EditCodigo.getSelectedItem()+"");
        if(ban==1){
            CargarDatosEdicion();
        }
}//GEN-LAST:event_EditCodigoItemStateChanged

    private void EditCodigoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_EditCodigoKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.EditNombre.requestFocusInWindow();
        }
}//GEN-LAST:event_EditCodigoKeyPressed
//<edit>
    private void jLabel20FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jLabel20FocusGained
        // TODO add your handling code here:
}//GEN-LAST:event_jLabel20FocusGained

    private void jLabel21FocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jLabel21FocusGained
        // TODO add your handling code here:
}//GEN-LAST:event_jLabel21FocusGained

    private void EditApellidoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_EditApellidoKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.EditReligion.requestFocusInWindow();
        }
}//GEN-LAST:event_EditApellidoKeyPressed

    private void EditNombreKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_EditNombreKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.EditApellido.requestFocusInWindow();
        }
}//GEN-LAST:event_EditNombreKeyPressed

    private void EditReligionKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_EditReligionKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.EditTelefono.requestFocusInWindow();
            this.EditNacimiento.getCalendarButton().doClick();
        }
}//GEN-LAST:event_EditReligionKeyPressed

    private void EditNacimientoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_EditNacimientoKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.EditTelefono.requestFocusInWindow();
        }
}//GEN-LAST:event_EditNacimientoKeyPressed

    private void EditTelefonoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_EditTelefonoKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.EditDireccion.requestFocusInWindow();
        }
}//GEN-LAST:event_EditTelefonoKeyPressed

    private void EditDireccionKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_EditDireccionKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.EditNombreEncargado.requestFocusInWindow();
        }
}//GEN-LAST:event_EditDireccionKeyPressed

    private void EditNombreEncargadoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_EditNombreEncargadoKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.EditTelEncargado.requestFocusInWindow();
        }
}//GEN-LAST:event_EditNombreEncargadoKeyPressed

    private void EditTelEncargadoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_EditTelEncargadoKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.EditDirEncargado.requestFocusInWindow();
        }
}//GEN-LAST:event_EditTelEncargadoKeyPressed

    private void EditDirEncargadoKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_EditDirEncargadoKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.SiVigente.requestFocusInWindow();
        }
}//GEN-LAST:event_EditDirEncargadoKeyPressed

    private void SiVigenteKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_SiVigenteKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.SiVigente.setSelected(true);
            this.Cancelar.requestFocusInWindow();
        }
}//GEN-LAST:event_SiVigenteKeyPressed

    private void NoVigenteKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_NoVigenteKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            this.NoVigente.setSelected(true);
            this.Cancelar.requestFocusInWindow();
        }
}//GEN-LAST:event_NoVigenteKeyPressed

    private void CancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CancelarActionPerformed
        // TODO add your handling code here:
        Cancelar();
}//GEN-LAST:event_CancelarActionPerformed

    private void CancelarKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_CancelarKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            Cancelar();
        }
}//GEN-LAST:event_CancelarKeyPressed

    private void AceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AceptarActionPerformed
        // TODO add your handling code here:
        Aceptar();
}//GEN-LAST:event_AceptarActionPerformed

    private void AceptarKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_AceptarKeyPressed
        // TODO add your handling code here:
        if(evt.getKeyCode()==10){
            Aceptar();
        }
}//GEN-LAST:event_AceptarKeyPressed

    private void BuscarXItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_BuscarXItemStateChanged
        // TODO add your handling code here:
        CargarReporte();
    }//GEN-LAST:event_BuscarXItemStateChanged

    private void CRUDiAlumnoStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_CRUDiAlumnoStateChanged
        // TODO add your handling code here:
        if(haydatos){
            if(this.CRUDiAlumno.getSelectedIndex()==2){
                this.Descripcion.setText("Reporte de alumnos, los campos con * son obligatorios");
                this.Aceptar.setEnabled(false);
                this.Cancelar.setEnabled(false);
            }else if(this.CRUDiAlumno.getSelectedIndex()==0){
                this.Descripcion.setText("Creacion de nuevos alumnos de la escuela, los campos con * son obligatorios");
                this.Aceptar.setEnabled(true);
                this.Cancelar.setEnabled(true);
            }else {
                this.Descripcion.setText("Edicion de los alumnos ya existentes, los campos con * son obligatorios");
                this.Aceptar.setEnabled(true);
                this.Cancelar.setEnabled(true);
            }
        }else{this.CRUDiAlumno.setSelectedIndex(0);}
    }//GEN-LAST:event_CRUDiAlumnoStateChanged
    //</editor-fold>
    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                try
                {
                //Correcion hecha por Chuster Boy ;)
                    UIManager.setLookAndFeel("com.birosoft.liquid.LiquidLookAndFeel");
                }
                catch (Exception e)
                {
                    e.printStackTrace();
                }
                ControlAlumno dialog = new ControlAlumno(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton Aceptar;
    private javax.swing.JTextField Apellido;
    private javax.swing.JComboBox BuscarX;
    private javax.swing.JTabbedPane CRUDiAlumno;
    private javax.swing.JButton Cancelar;
    private javax.swing.JTextField CodigoPersonal;
    private javax.swing.JLabel Descripcion;
    private javax.swing.JTextField DirEncargado;
    private javax.swing.JTextField Direccion;
    private javax.swing.JTextField EditApellido;
    private javax.swing.JComboBox EditCodigo;
    private javax.swing.JTextField EditDirEncargado;
    private javax.swing.JTextField EditDireccion;
    private com.toedter.calendar.JDateChooser EditNacimiento;
    private javax.swing.JTextField EditNombre;
    private javax.swing.JTextField EditNombreEncargado;
    private javax.swing.JTextField EditReligion;
    private javax.swing.JTextField EditTelEncargado;
    private javax.swing.JTextField EditTelefono;
    private com.toedter.calendar.JDateChooser Nacimiento;
    private javax.swing.JRadioButton NoVigente;
    private javax.swing.JTextField Nombre;
    private javax.swing.JTextField NombreEncargado;
    private javax.swing.JPanel PanelCreacion;
    private javax.swing.JPanel PanelEdicion;
    private javax.swing.JTextField Religion;
    private javax.swing.JRadioButton SiVigente;
    private javax.swing.JTable TablaReporte;
    private javax.swing.JTextField TelEncargado;
    private javax.swing.JTextField Telefono;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private com.l2fprod.common.swing.JTaskPane jTaskPane1;
    // End of variables declaration//GEN-END:variables

}
